package com.codinghero.zqlb.spider.bo;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.codinghero.zqlb.match.LiveChannel;
import com.codinghero.zqlb.spider.dao.LiveChannelDao;

public class LiveChannelBo {
	
	private LiveChannelDao liveChannelDao = new LiveChannelDao();
	
	public List<LiveChannel> getAllLiveChannels(){
		try {
			liveChannelDao.connect();
			return liveChannelDao.getAllLiveChannels();
		} catch (SQLException e) {
			e.printStackTrace();
			return new ArrayList<LiveChannel>();
		} finally {
			liveChannelDao.close();
		}
	}
}
